<%@ page language="java" import="java.util.*;" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<html:base />
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>进货入库</title>
	</head>
	<script src="../../js/jquery.js"></script>
	<script src="../../js/CJL.0.1.min.js"></script>
	<script src="../../js/sort.js"></script>
	<script src="../../js/calendar.js"></script>
	<script src="../../js/changebgcolor.js"></script>
	<script src="../../js/shipment/outStock.js"></script>

	<link href="../../css/body.css" rel="stylesheet" type="text/css" />
	<link href="../../css/bus.css" rel="stylesheet" type="text/css" />
	<link href="../../css/sort.css" rel="stylesheet" type="text/css" />
	<link href="../../css/mask.css" rel="stylesheet" type="text/css" />

	<body class="bb" style="padding: 5px; text-align: center;">
		<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0;">
			<br />
			<h2> 
				货品出库 
			</h2>
			<hr />
			出货日期：
			<input readonly type="text" id="tDate" size="10"
				onfocus="calendar.setHook(this);" value="">
			<input type="button" value="打印单据" />
			<br />
			<br />
			<table border="0" cellspacing="1" class="odTable" id="idTable" style="border: 0;" width="600px" onMouseOver="changeto()"  onmouseout="changeback()">
				<thead>
					<tr>
						<td width="100px">
							<span id="idTitle">货品名称</span>
						</td>
						<td width="50px">
							<span id="idUtil">单位</span>
						</td>
						<td width="80px">
							<span id="idNorm">规格型号</span>
						</td>
						
						<td width="80px">
							<span id="idCount">数量</span>
						</td>
						
						<td width="40px">
							<input type="button" value="添加" style="height: 20px;" onclick="selectAllMer();">
						</td>
					</tr>
				</thead>
				<tbody id="choseMerList">
				
				</tbody>
				<tfoot>
					<tr>
						<td width="">
							&nbsp;&nbsp;
						</td>
						<td width="">
							&nbsp;&nbsp;
						</td>
						<td width="">
							&nbsp;&nbsp;
						</td>
						
						<td width="">
							&nbsp;&nbsp;
						</td>
						<td width="">
							&nbsp;&nbsp;
						</td>
					</tr>
				</tfoot>
			</table>
			<br>&nbsp; 经办人： 
			<select id="buyer" size="1" style="width: 100px;">
				<c:forEach var="emp" items="${businessEmpList}">
					<option value="${emp.employeeId}">
						${emp.employeeName}
					</option>
				</c:forEach>
			</select>
			&nbsp;&nbsp;&nbsp; 单号：
			<input type="text" id="invoiceCid" size="20" />
			<br />
			备注：
			<input type="text" id="memo" value="" size="50" />
			&nbsp;&nbsp;&nbsp;
			<input type="button" onclick="saveInvoice()" value="保存" />
			&nbsp;&nbsp;&nbsp;
			<input type="button" onclick="window.close();" value="退出" />
		</div>
		<div id="mask" style="padding: 20px; display: none;">
			<div style="position: absolute; background-color:white; width: 550px; height: 400px; top: 50%; left: 50%; margin-left: -275px; margin-top: -200px; padding: 5px;">
			货品名称：<input id="smerName" type="text" >
			货品型号：<input id="smerNorm" type="text" >
			<input type="button" value="查询" onclick="selectMer();"><br>
				<table class="odTable" width="90%" onMouseOver="changeto()"  onmouseout="changeback()">
					<THEAD>
						<tr><th colspan="5" align="left" background="#99CCFF">货品列表</th><th colspan="2" align="right"><input type="button" value="添加" onclick="addOldMer();"></th></tr>
						<tr><td>&nbsp;</td><td>货品名称</td><td>货品类别</td><td>单位</td><td>货品型号</td><td>库存数量</td></tr>
					</THEAD>
					<TBODY id="merList">
					
					</TBODY>
				</table>
		</div>
	</body>
</html>
